package cn.iocoder.yudao.module.iot.controller.admin.device.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 设备信息新增/修改 Request VO")
@Data
public class IotDeviceSaveReqVO {

    @Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32195")
    private Long id;

    @Schema(description = "设备名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "设备名称不能为空")
    private String name;

    @Schema(description = "设备描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "设备描述")
    @NotEmpty(message = "设备描述不能为空")
    private String descript;

    @Schema(description = "设备类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "设备类型不能为空")
    private Integer type;

    @Schema(description = "设备状态（0 离线 1 在线）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "设备状态（0 离线 1 在线）不能为空")
    private Integer status;

    @Schema(description = "备注", example = "你猜")
    private String remark;

}